import {designPage} from "@peryl/react-compose";
import {usePageService} from "../../modules/micro/usePageService";
import {pathJoin} from "@peryl/utils/pathJoin";

export default designPage(() => {

  const { pageParam, nav } = usePageService();

  const purePath = pageParam.path.replace('/home/path', '');

  nav.redirect(pathJoin('react-base/home-path', purePath), pageParam);

  return () => <></>;
});
